package chapter10;

public class Demo12 {

    public static void main(String[] args) {
        int[] nums={1,2,3,4,5,6,7,8};


        for (int n:nums){
            System.out.print(" "+n);
        }
    }
}
